<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <!--{include file='comm/header.tpl'}-->

    <title>中奖记录列表</title>

    <!--{include file='comm/comm_cal.tpl'}-->
    <script>
    </script>
</head>
<body>
<div style="width:100%">

    <div class="items clearfix">

        <h2 style="" class="tal">
            中奖记录列表&nbsp;[<!--{$promotionTypeName}-->]
        </h2>

        <div class="items2">
            <div>
                <table id="flex" style="display:none"></table>
            </div>

        </div>

    </div>

    <div class="bottom_fixbox">
        <div class="rectbox tac">

            <input type="button" value="导出" onclick="scratch.recordExport();" class="btn">

        </div>
    </div>

</div>

<script type="text/javascript">

    $("#flex").flexigrid({
        type: "POST",
        url:"/invokingAjax-backend/promotion/scratch.ajax?operFlg=7&xjx=none&promotionID=<!--{$promotionID}-->",
        dataType: "json",
        colModel : [
            {display: "会员号", width : 100, align: 'left'},
            {display: "奖项名称", width : 150, align: 'left'},
            {display: "奖品", width : 150, align: 'left'},
            {display: "是否已领取", width : 1800, align: 'left'}
        ],
        sortname: "pwp.createTime",
        sortorder: "desc",
        usepager: true,
        rp: 10,
        useRp: true,
        showTableToggleBtn: true
    });

    var scratch = {
        recordExport:function(){

            window.location.href = '/quanliadmin/app/promotion/winRecord.pscript?operFlg=2&promotionID=<!--{$promotionID}-->';

        }
    }

</script>
</body>
</html>